home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / cgtrfs.z / cgtrfs
Encoding:
Text File  |  2002-10-03  |  6.2 KB  |  199 lines

  1.  
  2.  
  3.  
  4. CCCCGGGGTTTTRRRRFFFFSSSS((((3333SSSS))))                                                          CCCCGGGGTTTTRRRRFFFFSSSS((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      CGTRFS - improve the computed solution to a system of linear equations
  10.      when the coefficient matrix is tridiagonal, and provides error bounds and
  11.      backward error estimates for the solution
  12.  
  13. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.      SUBROUTINE CGTRFS( TRANS, N, NRHS, DL, D, DU, DLF, DF, DUF, DU2, IPIV, B,
  15.                         LDB, X, LDX, FERR, BERR, WORK, RWORK, INFO )
  16.  
  17.          CHARACTER      TRANS
  18.  
  19.          INTEGER        INFO, LDB, LDX, N, NRHS
  20.  
  21.          INTEGER        IPIV( * )
  22.  
  23.          REAL           BERR( * ), FERR( * ), RWORK( * )
  24.  
  25.          COMPLEX        B( LDB, * ), D( * ), DF( * ), DL( * ), DLF( * ), DU( *
  26.                         ), DU2( * ), DUF( * ), WORK( * ), X( LDX, * )
  27.  
  28. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  29.      These routines are part of the SCSL Scientific Library and can be loaded
  30.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  31.      directs the linker to use the multi-processor version of the library.
  32.  
  33.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  34.      4 bytes (32 bits). Another version of SCSL is available in which integers
  35.      are 8 bytes (64 bits).  This version allows the user access to larger
  36.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  37.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  38.      only one of the two versions; 4-byte integer and 8-byte integer library
  39.      calls cannot be mixed.
  40.  
  41. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  42.      CGTRFS improves the computed solution to a system of linear equations
  43.      when the coefficient matrix is tridiagonal, and provides error bounds and
  44.      backward error estimates for the solution.
  45.  
  46. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  47.      TRANS   (input) CHARACTER*1
  48.              Specifies the form of the system of equations:
  49.              = 'N':  A * X = B     (No transpose)
  50.              = 'T':  A**T * X = B  (Transpose)
  51.              = 'C':  A**H * X = B  (Conjugate transpose)
  52.  
  53.      N       (input) INTEGER
  54.              The order of the matrix A.  N >= 0.
  55.  
  56.      NRHS    (input) INTEGER
  57.              The number of right hand sides, i.e., the number of columns of
  58.              the matrix B.  NRHS >= 0.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCGGGGTTTTRRRRFFFFSSSS((((3333SSSS))))                                                          CCCCGGGGTTTTRRRRFFFFSSSS((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      DL      (input) COMPLEX array, dimension (N-1)
  75.              The (n-1) subdiagonal elements of A.
  76.  
  77.      D       (input) COMPLEX array, dimension (N)
  78.              The diagonal elements of A.
  79.  
  80.      DU      (input) COMPLEX array, dimension (N-1)
  81.              The (n-1) superdiagonal elements of A.
  82.  
  83.      DLF     (input) COMPLEX array, dimension (N-1)
  84.              The (n-1) multipliers that define the matrix L from the LU
  85.              factorization of A as computed by CGTTRF.
  86.  
  87.      DF      (input) COMPLEX array, dimension (N)
  88.              The n diagonal elements of the upper triangular matrix U from the
  89.              LU factorization of A.
  90.  
  91.      DUF     (input) COMPLEX array, dimension (N-1)
  92.              The (n-1) elements of the first superdiagonal of U.
  93.  
  94.      DU2     (input) COMPLEX array, dimension (N-2)
  95.              The (n-2) elements of the second superdiagonal of U.
  96.  
  97.      IPIV    (input) INTEGER array, dimension (N)
  98.              The pivot indices; for 1 <= i <= n, row i of the matrix was
  99.              interchanged with row IPIV(i).  IPIV(i) will always be either i
  100.              or i+1; IPIV(i) = i indicates a row interchange was not required.
  101.  
  102.      B       (input) COMPLEX array, dimension (LDB,NRHS)
  103.              The right hand side matrix B.
  104.  
  105.      LDB     (input) INTEGER
  106.              The leading dimension of the array B.  LDB >= max(1,N).
  107.  
  108.      X       (input/output) COMPLEX array, dimension (LDX,NRHS)
  109.              On entry, the solution matrix X, as computed by CGTTRS.  On exit,
  110.              the improved solution matrix X.
  111.  
  112.      LDX     (input) INTEGER
  113.              The leading dimension of the array X.  LDX >= max(1,N).
  114.  
  115.      FERR    (output) REAL array, dimension (NRHS)
  116.              The estimated forward error bound for each solution vector X(j)
  117.              (the j-th column of the solution matrix X).  If XTRUE is the true
  118.              solution corresponding to X(j), FERR(j) is an estimated upper
  119.              bound for the magnitude of the largest element in (X(j) - XTRUE)
  120.              divided by the magnitude of the largest element in X(j).  The
  121.              estimate is as reliable as the estimate for RCOND, and is almost
  122.              always a slight overestimate of the true error.
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. CCCCGGGGTTTTRRRRFFFFSSSS((((3333SSSS))))                                                          CCCCGGGGTTTTRRRRFFFFSSSS((((3333SSSS))))
  137.  
  138.  
  139.  
  140.      BERR    (output) REAL array, dimension (NRHS)
  141.              The componentwise relative backward error of each solution vector
  142.              X(j) (i.e., the smallest relative change in any element of A or B
  143.              that makes X(j) an exact solution).
  144.  
  145.      WORK    (workspace) COMPLEX array, dimension (2*N)
  146.  
  147.      RWORK   (workspace) REAL array, dimension (N)
  148.  
  149.      INFO    (output) INTEGER
  150.              = 0:  successful exit
  151.              < 0:  if INFO = -i, the i-th argument had an illegal value
  152.  
  153. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  154.      ITMAX is the maximum number of steps of iterative refinement.
  155.  
  156. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  157.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  158.  
  159.      This man page is available only online.
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.